body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* ======================TOP HEADER====================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  gap: 20px;
  /* height: 15vh; */
  max-height: 10vh !important;
}

@media (min-width: 768px) and (max-width: 1000px) {
  a.navbar-brand{
    display: none !important;
  }
  .d-flex{display:none!important}
  .logos.d-flex.align-items-center.gap-3{
    display: none !important;
  }
  .contact-info.d-flex.align-items-center.flex-nowrap{
    display: none !important;
  }
  .logo-cadmech {
    margin-left: 159px;
  }
        .navbar-nav .nav-link {
        color: white !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 8px 8px !important;
  }
  .dropdown-item{
        font-size: 14px !important;
        font-weight: 400 !important;
  }
}

@media (min-width: 1300px) and (max-width: 1449px) {
  .logo-cadmech {
    margin-left: 90px;
  }
}

@media (min-width: 1200px) and (max-width: 1300px) {
        .navbar-nav .nav-link {
        color: white !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 8px 8px !important;
  }
    .dropdown-item{
        font-size: 14px !important;
        font-weight: 400 !important;
  }
}

@media (min-width: 1450px) {
  .logo-cadmech {
    margin-left: 159px;
  }
}


@media (max-width: 767px) {
  .logo-cadmech {
    margin-left: 0px;
  }
  div.contact-info{
    display: none !important;
  }/*
  .logo-cadmech {
    width: 40% !important;
  }*/
  .logos img {
    height: 20px !important;
    margin-bottom: 15px !important;
}
}

.logo-image {
  max-width: 200px;
  height: auto;
  /* margin-left: 50px; */
}

/* Contact Info */
.contact-info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: -30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item i {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
}

.contact-text {
  font-weight: 500;
  margin-top: 7px;
  font-size: 17px;
}

/* Logos Section */
.logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 160px;
}

.logo-wd {
  max-width: 160px;
  height: auto;
  margin-right: 10px;
}

.logo-iso {
  width: 170px;
  height: 90px;
  margin-right: 50px;
}

/* ========================ORANGE NAVBAR============================= */
.navbar {
  background: linear-gradient(90deg, #e6322c, #f2920c);
  color: white;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  margin-left: 340px;
}

.nav-links li {
  display: flex;
  align-items: center;
}

/* Add separator after all but the last item */
.nav-links li:not(:last-child)::after {
  content: "|";
  color: white;
  margin-left: 8px;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* =============================HERO SECTION WITH TEXT========================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh; /* Full-screen height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 80%;
  color: white;
  text-align: center;
}

.hero-text {
  font-size: 35px; /* Responsive text size */
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
}

/* =================== SECTION 1 ========================= */
.cadmech-section {
  width: 100%;
  padding: 50px 0 0;
  background-color: #fcf2e8;
}

/* Container */
.container {
  width: 90%;
  /*max-width: 1200px;*/
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.left-content {
  width: 60%;
}

.cadmech-title {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
}

.cadmech-subtitle {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  margin-top: -30px;
}

.cadmech-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
   text-align: justify;
}

/* Brands Section */
.brand-container {
  margin-top: 20px;
}

.brand-button {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  margin-bottom: -10px;
}
.brand-button1 {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  margin-bottom: -10px;
}
/* White Box Container */
.white-container {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  width: 120vh;
  height: 360px;
}

.brand-message {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.6rem;
  font-weight: 500;
  margin-left: 70px;
}

.brand-logos img {
  width: 700px;
}

/* Right Side (Image) */
.right-content {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-image {
  margin-top: auto !important;
  margin-left: -80px;
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 470px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .left-content,
  .right-content {
    width: 100%;
  }

  .cadmech-title {
    font-size: 2rem;
  }

  .brand-logos img {
    width: 100px;
  }
}

/* ========================SECTION 2============================ */
.features-section {
  background: linear-gradient(90deg, #e6332a, #f39313);
  padding: 50px 0;
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  width: 200px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.feature-item {
  padding: 15px;
}

.feature-text {
  max-width: 250px;
  margin: 0 auto;
  font-size: 16px;
  color: white;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.col-md-4 {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
  max-width: 300px;
}

@media (max-width: 768px) {
  .col-md-4 {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .col-md-4 {
    flex: 1 1 100%;
  }
}

/* =========================SECTION 2============================ */
.features-section {
  background: linear-gradient(90deg, #e6332a, #f39313);
  padding: 60px 0;
  text-align: center;
  color: white;
  position: relative;
  z-index: 0;
}
.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.feature-item {
  z-index: 1;
  flex: 1 1 300px;
  max-width: 300px;
  text-align: center;
}
.feature-icon {
  width: 80px;
  height: 80px;
  color: white;
}
.feature-text {
  margin-top: -10px;
  font-size: 16px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}
.background-pattern {
  position: absolute;
  /*width: 1000px;*/
  height: 550px;
  background: url("/assets/img/sunburst-pattern.png") no-repeat center,
    url("assets/img/assets/img/Copy of Cadmech-Logo-Horizontal-Colour short.png")
      no-repeat center;
  background-size: cover, 200px;
  opacity: 0.35;
  margin-left: -550px;
  margin-top: -40px;
  z-index: 0;
}


/* ========================== SECTION 3============================ */
.section-container {
  background-color:#fcf2e8;
  padding: 20px !important;
  text-align: center !important;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-description {
  text-align: left;
  font-size: 29px;
  max-width: 1100px;
  line-height: 1.38;
  margin-left: 270px;
  margin-bottom: 30px;
  color: #5c5c5a;
}

.cim-title {
  margin-top: 50px;
  font-size: 20px;
  font-weight: bold;
  color: #5c5c5a;
}


.image-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.image-card {
  margin-right: 35px;
  text-align: center;
  max-width: 250px;
}

.image-card img {
  width: 100%;
  height: 170px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 9px solid white;
}

.image-caption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: #918686;
  font-weight: 600;
}


/* ===================SECTION 4 EQUIPMENT======================== */
.equipment-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.equipment-item {
  text-align: center;
}

.equipment-item img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 9px;
}

.equipment-item span {
  /* margin-left: 8px; */
  color: #e6332a;
 /* color: linear-gradient(90deg, #e6332a, #f39313); */
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 200px;

}
.equipment-item h3 {
  font-weight: 600;
  font-size: 1rem;
  color: #655f5f;
  text-decoration: none; 
  color: inherit;

}

@media (max-width: 768px) {
  .equipment-section {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
}

/* SUNSET */
.sunset-section {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.content {
  max-width:100vh;
}

.content h2 {
  font-size: 30px;
  font-weight: 400;
  margin-left: 100px;
}

.contact-form form {
  margin-right: 70px;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: auto;
  min-width: 50vh;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 18px;
}

@media (max-width: 750px) {
  .contact-form input,
  .contact-form textarea {
    width: auto !important;
    min-width: 100% !important;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 18px;
  }
}

.contact-form textarea {
  height: 80px;
}

.contact-form button {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  color: white;
  border: none;
  padding: 15px 0;
  width: 20vh;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.8;
}
/* ======================================About=========================================== */
.about-caption {
  margin-top: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #918686;
  font-weight: 600;
  line-height: 120%;
  align-content: center;
  margin-top: 30px; 
  text-align: center; 
  padding-left: 150px;
  /* margin-left: 50; */
}
/* White Box Container */
.white-container-about {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  width: 120vh;
  height: 400px;
  padding: 0px; 
  z-index: 2;
   width: 70vw;
                        
   background: linear-gradient(to right, white 80%, rgba(255, 255, 255, 0));
                        
   position: relative;
}
/* .white-container-about {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  height: 400px;
  z-index: 2;
  width: 70vw;
  position: relative;
  overflow: hidden; 
}

.white-container-about::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(100px); 
  background-color: rgba(255, 255, 255, -0.2); 
  z-index: -1;
} */

/* ========================================FOOTER========================================= */
.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-left .logo {
  width: 250px;
  height: auto;
}

.footer-middle {
  flex: 0 0 auto;
  position: relative;
  padding-right: 50px;
}

.footer-middle i {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.footer-middle::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(0deg, #de0e0e, #fc8823);
  height: 200px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.footer-links {
  flex: 0 0 auto;
  padding-left: 50px;
}

.footer-links h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.footer-social {
  flex: 0 0 auto;
}

.footer-social h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social i {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  color: black;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 23px;
  padding-top: 15px;
  margin-bottom: 37px;
  border-top: 1px solid #444;
  font-size: 14px;
}
.gradient-text {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    /*text-align: center;
    gap: 30px;*/
  }

  .footer-left, 
  .footer-middle,
  .footer-links,
  .footer-social {
    width: 100%;
    padding: 0;
  }

  .footer-middle::after {
    display: none;
  }

  .footer-middle {
    padding: 20px 0;
  }

  .footer-links {
    padding: 20px 0;
  }

  .footer-links ul {
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .logos.d-flex.align-items-center.gap-3{
    display: none !important;
  }
  .contact-info.d-flex.align-items-center.flex-nowrap{
    display: none !important;
  }
  .footer {
    padding: 30px 15px;
  }

  .footer-left .logo {
    width: 180px;
  }

  .footer-middle i {
    font-size: 20px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-links ul {
    text-align: left;
  }

  .footer-links ul li {
    margin-bottom: 8px;
  }

  .footer-links ul li a {
    font-size: 14px;
  }

  .footer-social i {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 375px) {
  .footer {
    padding: 25px 10px;
  }

  .footer-left .logo {
    width: 150px;
  }

  .footer-middle i {
    font-size: 18px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 16px;
  }

  .footer-links ul li a {
    font-size: 13px;
  }

  .footer-social i {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/*  */
.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.carousel-buttons button {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 10px 15px;
  font-size: 50px;
  margin-top: -70px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 30px ;
}

/* team container page 2 */
.team-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 30px;
  padding-left: 100px;
}

.team-member {
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.team-title {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #5c5c5a;
}
.team-caption {
  /* margin-top: 10px; */
  font-size: 15px;
  font-weight: bold;
  color: #918686;
  font-weight: 400;
  /* font-family: cursive;  */
  line-height: 1.5;
}
/* component-cim */
.cim-components {
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
}

.cim-components h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  justify-items: center;
}

.component-item {
  background-color: #fafafa;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.component-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.component-item img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  
}

.component-item p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #333;
}
/* Tablet (≤1024px) */
@media (max-width: 1024px) {
.content-flexible {
  flex-direction: column;
  margin-left: 0;
  gap: 30px;
  align-items: center;
}

.left-section-fms, .right-section-fms {
  width: 100%;
  flex: unset;
}

.card-container-fms {
  justify-content: center;
  gap: 20px;
}

.card-fms {
  width: 280px;
}

.component-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.component-item img {
  height: 130px;
}
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  a.navbar-brand{
    display: none !important;
  }
.container-flexible {
  padding: 15px;
}

.content-flexible {
  margin-top: 30px;
  gap: 20px;
}

h1, h2 {
  font-size: 1.5rem;
  text-align: center;
}

.installations-fms h2,
.cim-components h2 {
  font-size: 1.6rem;
}

.card-fms {
  width: 90%;
  margin: 0 auto;
}

.card-fms img {
  height: 180px;
}

.component-item img {
  height: 120px;
} 

.component-item p {
  font-size: 0.9rem;
}
}

/* Extra Small Devices (≤480px) */
@media (max-width: 480px) {
.card-fms {
  width: 100%;
}

.card-fms img {
  height: 160px;
}

.component-grid {
  grid-template-columns: 1fr;
}

.component-item img {
  height: 100px;
}

.component-item p {
  font-size: 0.85rem;
}
}
